//主页-游戏币账号装备选择 组件 头部 无路由页面
const Header = resolve => {
    require.ensure(['components/Header.vue'], () => {
        resolve(require('components/Header.vue'));
    }, 'Home');
};
//主页-游戏币账号装备选择  父组件 无实际显示路由页面
const Choice = resolve => {
    require.ensure([], () => {
        resolve(require('components/choice/Choice.vue'));
    }, 'choice');
}
//主页-游戏币账号装备选择 未找到有用页面 弃用
// const Entry = resolve => {
//     require.ensure([], () => {
//         resolve(require('components/choice/Entry.vue'));
//     }, 'choice');
// }
//主页-游戏币账号装备选择 选择游戏页面
const BuyEntry = resolve => {
    require.ensure([], () => {
        resolve(require('components/choice/BuyEntry.vue'));
    }, 'choice');
}
//商品游戏账号列表
const GoodsList = resolve => {
    require.ensure([], () => {
        resolve(require('components/choice/GoodsList.vue'));
    }, 'choice');
}
//商品装备列表
//我要买页面-通用
const GameList = resolve => {
    require.ensure([], () => {
        resolve(require('components/choice/GameList.vue'));
    }, 'choice');
}

export const choiceRoute =

{
    path: '/vue/choice',
    components: {
        default: Choice,
    },
    children: [
        // {
        //     path: 'entry',
        //     name:'Entry',
        //     components: {
        //         default: Entry,
        //         'choice-header': Header
        //     }
        // },
        {
            path: 'buyEntry',
            name:'buyEntry',
            components: {
                default: BuyEntry,
                'choice-header': Header
            }
        },
        {
            path: '/vue/pcGoodsList/:gameId/:gameName/:goodsType',
            name:'PcGoodsList',
            components: {
                default: GoodsList
            }
        },
        {
            path: '/vue/gameList/:gameType',
            name:'GameList',
            components: {
                default: GameList,
                'choice-header': Header
            }
        },
    ],
    meta: {isPublish: true, requireAuth: false}
};
